package pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 收货地址表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_address")
public class Address {
    /**
     * 收货地址id(主键)
     */
    @TableId(value = "address_id", type = IdType.INPUT)
    private Long addressId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 收货人
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 省份
     */
    @TableField(value = "province")
    private String province;

    /**
     * 市
     */
    @TableField(value = "city")
    private String city;

    /**
     * 区
     */
    @TableField(value = "district")
    private String district;

    /**
     * 地址详情
     */
    @TableField(value = "detailed")
    private String detailed;

    /**
     * 邮政编码
     */
    @TableField(value = "zip_code")
    private String zipCode;

    /**
     * 状态(0删除；1非默认地址；2默认地址)
     */
    @TableField(value = "state_id")
    private Long stateId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 备用字段1
     */
    @TableField(value = "reserve_one")
    private String reserveOne;

    /**
     * 备用字段2
     */
    @TableField(value = "reserve_two")
    private String reserveTwo;

    public static final String COL_ADDRESS_ID = "address_id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_USER_NAME = "user_name";

    public static final String COL_PHONE = "phone";

    public static final String COL_PROVINCE = "province";

    public static final String COL_CITY = "city";

    public static final String COL_DISTRICT = "district";

    public static final String COL_DETAILED = "detailed";

    public static final String COL_ZIP_CODE = "zip_code";

    public static final String COL_STATE_ID = "state_id";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_RESERVE_ONE = "reserve_one";

    public static final String COL_RESERVE_TWO = "reserve_two";
}